package com.ruoyi.ai.domain.vo;

import com.alibaba.dashscope.common.Role;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;

import java.io.Serializable;

/**
 * 聊天记录视图对象 wx_chat
 *
 * @author ruoyi
 * @date 2024-04-01
 */
@Data
@ExcelIgnoreUnannotated
public class WxChatVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 聊天id
     */
    @ExcelProperty(value = "聊天id")
    private Long chatId;

    /**
     * 微信用户id
     */
    @ExcelProperty(value = "微信用户id")
    private Long wxUserId;

    /**
     * 对话id
     */
    @ExcelProperty(value = "对话id")
    private Long dialogueId;

    /**
     * 角色
     */
    @ExcelProperty(value = "角色")
    private String role;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ai_chat_status")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 排序字段
     */
    private Integer sort;

}
